import {Http} from '@/utils/http.js';
class UploadFile {
	constructor(arg) {
		
	}
	static async uploadFile(filePath,data){
		return await Http.uploadFile({
			url:'oss/oss-file/uploadFile',
			filePath, 
			name:'file',
			data
		})
	}
	
	static async uploadVideo(filePath,data){
		return await Http.uploadFile({
			url:'oss/oss-file/uploadVideo',
			filePath, 
			name:'file',
			data
		})
	}
	
	static async uploadFiles(files,data){
		return await Http.uploadFiles({
			url:'oss/oss-file/uploadFiles',
			files,
			data
		})
	}

}

export {
    UploadFile
}